import XLSX from 'xlsx'
// ! 导出
export function exportData(list, title, data) {
  const aoa = data
  aoa.unshift(title)

  const workbook = XLSX.utils.book_new()
  const excel = XLSX.utils.aoa_to_sheet(aoa)
  XLSX.utils.book_append_sheet(workbook, excel)
  XLSX.writeFile(workbook, '数据导出.xlsx')
}
